Hide GtkTextAttributes functions
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 15 Dec 2020 16:20:21 +0000 (16:20 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 15 Dec 2020 16:20:21 +0000 (16:20 +0000)
The type is private, so making functions operating on it public is
pointless.

docs/reference/gtk/meson.build
gtk/gtktextattributes.c
gtk/gtktextattributes.h

index bc0b44fbfc428639cd64ffcf6003f476871df959..67fbaf55cb7ebb93c5012eecf266f9d350c5db40 100644 (file)
@@ -244,6 +244,7 @@ private_headers = [
   'gtkstylepropertyprivate.h',
   'gtkstyleproviderprivate.h',
   'gtktestatcontextprivate.h',
+  'gtktextattributes.h',
   'gtktextbufferprivate.h',
   'gtktextchildprivate.h',
   'gtktextdisplayprivate.h',
index 47c73232a31ccae078e5b3d2a4474dcb7f68c50b..0f0abe8e387cc5aa153dc87e9d7363ef2f49b26e 100644 (file)
@@ -100,10 +100,6 @@ gtk_text_attributes_copy (GtkTextAttributes *src)
   return dest;
 }
 
-G_DEFINE_BOXED_TYPE (GtkTextAttributes, gtk_text_attributes,
-                     gtk_text_attributes_ref,
-                     gtk_text_attributes_unref)
-
 /**
  * gtk_text_attributes_copy_values:
  * @src: a #GtkTextAttributes
index 367a0980ccefc6f94fdd631881baaa72c5b53330..06ccbe6e84383f852a91be7eef79fda7e857cb01 100644 (file)
@@ -58,9 +58,6 @@
 G_BEGIN_DECLS
 
 typedef struct _GtkTextAttributes GtkTextAttributes;
-
-#define GTK_TYPE_TEXT_ATTRIBUTES     (gtk_text_attributes_get_type ())
-
 typedef struct _GtkTextAppearance GtkTextAppearance;
 
 /**
@@ -184,23 +181,13 @@ struct _GtkTextAttributes
   char *font_features;
 };
 
-GDK_AVAILABLE_IN_ALL
 GtkTextAttributes* gtk_text_attributes_new         (void);
-GDK_AVAILABLE_IN_ALL
 GtkTextAttributes* gtk_text_attributes_copy        (GtkTextAttributes *src);
-GDK_AVAILABLE_IN_ALL
 void               gtk_text_attributes_copy_values (GtkTextAttributes *src,
                                                     GtkTextAttributes *dest);
-GDK_AVAILABLE_IN_ALL
 void               gtk_text_attributes_unref       (GtkTextAttributes *values);
-GDK_AVAILABLE_IN_ALL
 GtkTextAttributes *gtk_text_attributes_ref         (GtkTextAttributes *values);
 
-GDK_AVAILABLE_IN_ALL
-GType              gtk_text_attributes_get_type    (void) G_GNUC_CONST;
-
-
 G_END_DECLS
 
 #endif
-